<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
         class Coder{
            say(message="hello")
            {
              console.log(message);
            }
         }

         class Cq extends Coder
         {
            constructor(name)
            {
                super();
                this.name = name;
            } 
             
         }

         let person = new Cq;
         person.say();
    </script>
</body>
</html>